package com.sophimp.award.vm

import androidx.lifecycle.ViewModel
import com.sophimp.award.bean.AwardItem
import com.sophimp.award.db.AwardDb
import com.sophimp.base.BaseApp
import java.util.*

/**
 * create by sfx on 2022/8/9 14:34
 */
class AwardViewModel : ViewModel() {
    private val dao = AwardDb.getDb(BaseApp.context).getAwardItemDao()

    fun readData(): List<AwardItem> {
        val data = mutableListOf<AwardItem>()
        data.add(AwardItem(0, "早饭", UUID.randomUUID().toString(), 3, ""))
        data.add(AwardItem(0, "早上刷牙", UUID.randomUUID().toString(), 3, ""))
        data.add(AwardItem(0, "晚上刷牙", UUID.randomUUID().toString(), 3, ""))
        data.add(AwardItem(0, "午饭", UUID.randomUUID().toString(), 3, ""))
        data.add(AwardItem(0, "按时午休", UUID.randomUUID().toString(), 3, ""))
        data.add(AwardItem(0, "按时睡觉", UUID.randomUUID().toString(), 3, ""))
        return data
    }
}